/* assets/gma-style.css */
#gma-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Row and Column Layout */
.gma-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.gma-col {
    flex: 1;
    min-width: 250px;
}

/* Section Styling */
.gma-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.gma-section h3 {
    margin-bottom: 20px;
    color: #23282d;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Field Styling */
.gma-field {
    margin-bottom: 15px;
}

.gma-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.gma-icon {
    font-size: 1.2em;
}

.gma-field select,
.gma-field input[type="text"],
.gma-field input[type="email"],
.gma-field input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: white;
}

.gma-field select:focus,
.gma-field input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

.gma-field input.error {
    border-color: #dc3232;
    background-color: #ffebe8;
}

/* Price Display */
#gma-price-display {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,115,170,0.2);
}

#gma-price-display h3 {
    margin: 0;
    color: white;
    border: none;
    padding: 0;
    font-size: 1.2em;
}

#gma-calculated-price {
    font-size: 2em;
    font-weight: bold;
    color: #fff;
}

/* Family Members Section */
.gma-family-member {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    position: relative;
}

.gma-family-member h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0073aa;
    font-size: 1.1em;
}

/* Buttons */
.gma-submit-btn {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,115,170,0.2);
}

.gma-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,115,170,0.3);
}

.gma-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.gma-add-btn {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.gma-add-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.gma-remove-member {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: 32px;
}

.gma-remove-member:hover {
    background: #c82333;
}

/* Loading */
#gma-loading {
    text-align: center;
    padding: 30px;
    font-size: 18px;
    color: #0073aa;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    #gma-form-container {
        padding: 20px;
    }
    
    .gma-row {
        flex-direction: column;
        gap: 0;
    }
    
    .gma-col {
        min-width: 100%;
        margin-bottom: 10px;
    }
    
    #gma-price-display {
        padding: 20px;
    }
    
    #gma-calculated-price {
        font-size: 1.5em;
    }
    
    .gma-remove-member {
        margin-top: 10px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    #gma-form-container {
        padding: 15px;
        border-radius: 8px;
    }
    
    .gma-section h3 {
        font-size: 1.1em;
    }
    
    .gma-submit-btn {
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* Admin Styles */
.gma-admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gma-admin-table th,
.gma-admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.gma-admin-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.gma-admin-table tr:hover {
    background: #f8f9fa;
}

.gma-admin-table tr:last-child td {
    border-bottom: none;
}

/* Elementor Compatibility */
.elementor-widget .gma-field label {
    margin-bottom: 8px !important;
}

.elementor-widget #gma-form-container {
    max-width: 100%;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gma-family-member {
    animation: fadeIn 0.3s ease;
}

#gma-month-field,
#gma-family-section,
#gma-price-display {
    animation: fadeIn 0.3s ease;
}