/* Maestrus Plans Page Styling - Match the design without changing DOM structure */
/* Apply Maestrus brand colors and styling to existing elements */

/* Apply Maestrus styling to the form panel */
.panel.panel-default {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.panel-heading {
    background-color: #011d54 !important;
    color: white;
    border: none;
    padding: 15px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Update legend styling to match Maestrus plans */
legend {
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #1abc9c;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.2em;
}

/* Update navigation pills to match Maestrus styling */
.nav.nav-pills > li.active > a,
.nav.nav-pills > li.active > a:hover,
.nav.nav-pills > li.active > a:focus {
    background-color: #1abc9c;
    color: white;
    border-radius: 4px;
}

.nav.nav-pills > li > a {
    color: #7f8c8d;
    font-weight: 500;
    border-radius: 4px;
}

/* Update input field styling to match Maestrus */
.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #1abc9c;
    box-shadow: 0 0 0 0.2rem rgba(26, 188, 156, 0.25);
}

/* Update button styling to match Maestrus */
.btn-primary {
    background-color: #1abc9c;
    border-color: #16a085;
    padding: 10px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background-color: #16a085;
    border-color: #148f77;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 188, 156, 0.3);
}

/* Update form group spacing */
.form-group {
    margin-bottom: 20px;
}

/* Update input group styling */
.input-group-addon {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    color: #7f8c8d;
    font-weight: 500;
}

/* Update the main payment button */
.do-processing {
    background: linear-gradient(135deg, #1abc9c, #16a085);
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(26, 188, 156, 0.3);
    transition: all 0.3s ease;
}

.do-processing:hover,
.do-processing:active,
.do-processing:focus {
    background: linear-gradient(135deg, #16a085, #148f77);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(26, 188, 156, 0.4);
}

/* Update checkbox styling */
input[type="checkbox"] {
    margin-right: 10px;
}

/* Update section header styling */
#sub-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 20px 0;
    margin-bottom: 30px;
}

/* Update title area styling */
#base-content h6.text-center {
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Update help blocks */
.help-block {
    color: #95a5a6;
    font-style: italic;
}

/* Update error styling */
.help-block.error {
    color: #e74c3c;
    font-weight: 500;
}

/* Update section dividers */
.divider_top {
    height: 5px;
    background: linear-gradient(to right, #1abc9c, #3498db);
    margin-top: -5px;
}

/* Update the main content section */
#main_content {
    padding: 20px 0;
}

/* Update modal body styling */
.modal-body {
    padding: 25px;
}

/* Update selected plan dropdown styling */
select#id_chosen_plan {
    border: 2px solid #1abc9c !important;
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 500;
}

/* Apply Maestrus color scheme to the entire form */
body {
    background-color: #f5f7fa;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Update top navigation header */
#top-nav {
    background-color: #011d54 !important;
    border-bottom: 3px solid #f8f9fa !important;
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Update nav container */
#top-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Update navbar header content */
#top-nav .navbar-header {
    flex-grow: 1;
    text-align: center;
}

/* Update title area in header */
#top-nav .navbar-header span {
    color: white !important;
    font-weight: 600;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hide title on small screens */
@media (max-width: 768px) {
    #top-nav .navbar-header span {
        display: none;
    }

    #top-nav .container {
        justify-content: center;
    }

    #top-nav #logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0 !important;
    }
}

/* Update logo styling */
#top-nav #logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

#top-nav #logo a.maestrus-logo-branco {
    background: url("../../images/maestrus-branco.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 210px;
    height: 45px;
    display: block;
    text-decoration: none;
}

/* Adjust logo for mobile */
@media (max-width: 768px) {
    #top-nav #logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        height: auto;
        margin: 0 !important;
    }

    #top-nav #logo a.maestrus-logo-branco {
        width: 180px;
        height: 38px;
    }

    #top-nav .navbar-header {
        margin-top: 50px;
    }
}

/* Update navbar collapse styling */
.navbar-collapse {
    background: transparent;
    border: none;
}

/* Header text styling */
#top-nav h6, #top-nav h4 {
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Update title area styling to match header */
#base-content h6.text-center {
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Update sub-header section */
#sub-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 20px 0;
    margin-bottom: 30px;
}

/* Update title area for other pages */
#sub-header .container h6, #sub-header .container h4 {
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive adjustments for small screens */
@media (max-width: 768px) {
    #top-nav {
        padding: 5px 0;
    }

    #top-nav #logo a.maestrus-logo-branco {
        width: 180px;
        height: 38px;
    }
}

/* Update payment method chooser buttons */
.btn-pref .btn {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-pref .btn:hover {
    border-color: #1abc9c;
    color: #1abc9c;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 188, 156, 0.2);
}

.btn-pref .btn.active,
.btn-pref .btn:active {
    border-color: #1abc9c;
    background-color: #1abc9c;
    color: white;
    box-shadow: 0 5px 15px rgba(26, 188, 156, 0.3);
}

/* Update payment method tabs */
.tab-pane {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-top: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* Update form elements inside payment tabs */
.tab-pane .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.tab-pane .form-control:focus {
    border-color: #1abc9c;
    box-shadow: 0 0 0 0.2rem rgba(26, 188, 156, 0.25);
}

/* Update payment buttons */
.do-processing {
    background: linear-gradient(135deg, #1abc9c, #16a085);
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 15px;
}

.do-processing:hover,
.do-processing:active,
.do-processing:focus {
    background: linear-gradient(135deg, #16a085, #148f77);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(26, 188, 156, 0.4);
}

/* Update panel styling for pre-subscription data */
body div.panel-heading,
body .panel-default > .panel-heading,
body .panel-primary > .panel-heading,
body .panel-success > .panel-heading,
body .panel-info > .panel-heading,
body .panel-warning > .panel-heading,
body .panel-danger > .panel-heading {
    background-color: #011d54 !important;
    color: white !important;
    border: none !important;
    padding: 12px 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Alternative approach - direct override */
div.panel.panel-default > .panel-heading {
    background-color: #011d54 !important;
    color: white !important;
    border: none !important;
    padding: 12px 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Additional override for any remaining panel headings */
#main_content .panel-heading,
#sub-header .panel-heading,
.modal-body .panel-heading {
    background-color: #011d54 !important;
    color: white !important;
    border: none !important;
    padding: 12px 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.panel-default > .panel-body {
    padding: 20px;
}

/* Update text styling */
p small {
    color: #7f8c8d;
}

p strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Update pre-subscription data panel */
div.panel.panel-default {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* Update thanks page styling */
#main_content h4.text-center {
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}