/**
 * Custom styles for membership registration form
 * Based on Molo Privatlege design
 */

/* Base Styles */
body {
    background-color: #ffffff;
    /*font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;*/
    font-size: 16px;
    line-height: 1.6;
    color: #313131;
    font-family: "ibm-plex-sans", sans-serif;
}

/* Page Header */
.page-header {
    background-color: #394a5e;
    padding: 2rem 0 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-header {
    color: #ffffff;
    font-family: "ibm-plex-sans", sans-serif;
    font-weight: 300;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.header-logo {
    max-width: 300px;
    height: auto;
    display: block;
}

.form-title {
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    font: normal normal 700 48px "ivymode", sans-serif;
}

/* Responsive header adjustments */
@media (max-width: 768px) {
    .page-header {
        padding: 1.5rem 0 1rem;
    }

    .header-logo {
        max-width: 220px;
    }

    .form-title {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 1rem 0 0.75rem;
    }

    .header-content {
        gap: 1rem;
    }

    .header-logo {
        max-width: 180px;
    }

    .form-title {
        font-size: 28px;
    }
}

/* Typography */
h1 {
    font-size: 42px;
    font-weight: 700;
    color: #313131;
}

h2 {
    font-size: 48px;
    font-weight: 700;
    color: #313131;
    margin-bottom: 1.5rem;
}

h3, h4 {
    font-size: 24px;
    font-weight: 600;
    color: #313131;
    margin-bottom: 1rem;
}

h5 {
    font-size: 18px;
    font-weight: 600;
    color: #313131;
}

/* Card Styling */
.card {
    border: 10px solid #ffffff;
    border-radius: 12px;
    box-shadow: 0px 30px 50px -10px rgba(0, 0, 0, 0.15);
    background-color: #F4F6FA;
}

.card-body {
    padding: 40px;
    background-color: #F4F6FA;
}

/* Form Controls */
.form-control {
    border: 1px solid #D2D2D2;
    border-radius: 6px;
    padding: 14px 15px;
    font-size: 16px;
    color: #334152;
    background-color: #ffffff;
    height: auto;
}

.form-control:focus {
    border-color: #066aab;
    box-shadow: 0 0 0 0.2rem rgba(6, 106, 171, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: #999;
}

/* Labels */
label {
    font-size: 16px;
    font-weight: 500;
    color: #334152;
    margin-bottom: 0.5rem;
}

/* Required field indicator */
.required-label {
    color: #D80F0F;
    margin-left: 2px;
}

.form-group {
    margin-bottom: 1.25rem;
}

/* Buttons */
.btn {
    border-radius: 3px;
    font-size: 17px;
    font-weight: 500;
    padding: 11px 24px;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #4DCA9D;
    border-color: #4DCA9D;
    border-radius: 6px;
    color: #ffffff;
    height: 41px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #3fb88a;
    border-color: #3fb88a;
    color: #ffffff;
}

.btn-lg {
    height: 50px;
    font-size: 18px;
    padding: 12px 32px;
}

.btn-outline-secondary {
    border-color: #cccccc;
    color: #555;
}

.btn-outline-secondary:hover {
    background-color: #f5f5f5;
    border-color: #999;
    color: #313131;
}

.btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

/* Alerts */
.alert {
    border-radius: 3px;
    border: 1px solid;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-info {
    background-color: #e7f3ff;
    border-color: #b8daff;
    color: #004085;
}

.alert-info h4,
.alert-info h5 {
    color: #004085;
    font-size: 18px;
    margin-bottom: 0.75rem;
}

.alert-info ul {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-success h4 {
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-danger ul {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

/* Family Members Section */
.family-member {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    animation: fadeIn 0.3s ease-in-out;
}

.family-member .card-body {
    padding: 1.5rem;
}

.family-member h5 {
    font-size: 18px;
    color: #313131;
}

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

/* Section Headers */
.border-bottom {
    border-bottom: 2px solid #e0e0e0 !important;
    padding-bottom: 0.75rem !important;
    margin-bottom: 1.5rem !important;
}

/* Checkboxes */
.form-check {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.form-check-input {
    margin-top: 0.3rem;
}

.form-check-label {
    font-size: 15px;
    color: #555;
}

.form-check-label a {
    color: #066aab;
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Container Spacing */
.container {
    max-width: 1140px;
}

/* Login Button Special Styling */
.btn-primary.btn-lg svg {
    margin-right: 8px;
}

/* Intro Section (before card) */
.intro-section {
    color: #334152;
    line-height: 1.6;
}

.intro-section p {
    margin-bottom: 0.75rem;
}

.intro-section p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 36px;
    }

    .card-body {
        padding: 1.5rem;
    }

    .btn-lg {
        font-size: 16px;
        height: 45px;
        padding: 10px 24px;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1.25rem;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 32px;
    }

    .btn {
        font-size: 16px;
    }

    .btn-lg {
        font-size: 15px;
        height: 42px;
    }
}
