/* Base Styles */
:root {
    --red: #CE1126;       /* Guinea flag red */
    --yellow: #FCD116;    /* Guinea flag yellow */
    --green: #009460;     /* Guinea flag green */
    --dark-green: #006341;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #333333;
    --text-color: #222222;
    --error-red: #D32F2F;
    --success-green: #388E3C;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 span {
    color: var(--red);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--green), var(--dark-green));
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.tagline {
    font-weight: 400;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Form Styles */
.membership-form {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 3rem;
}

.form-intro {
    margin-bottom: 2rem;
    text-align: center;
}

.form-intro h2 {
    color: var(--green);
    margin-bottom: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.optional {
    font-weight: normal;
    color: #666;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: var(--yellow);
    outline: none;
    box-shadow: 0 0 0 2px rgba(252, 209, 22, 0.2);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* Buttons */
.submit-btn {
    background-color: var(--red);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.submit-btn:hover {
    background-color: #B30E20;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    text-align: center;
}

.success {
    background-color: #E8F5E9;
    color: var(--success-green);
    border-left: 4px solid var(--success-green);
}

.error {
    background-color: #FFEBEE;
    color: var(--error-red);
    border-left: 4px solid var(--error-red);
}

/* Login Note */
.login-note {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #FFF8E1;
    border-left: 4px solid var(--yellow);
    border-radius: 4px;
}

.login-note a {
    color: var(--red);
    font-weight: 600;
    text-decoration: none;
}

.login-note a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--dark-gray);
    color: var(--white);
}

/* Back Link */
.back-link {
    text-align: center;
    margin-top: 1rem;
}

.back-link a {
    color: var(--red);
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem 0;
    }
    
    .membership-form {
        padding: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem 0;
    }
    
    .membership-form {
        padding: 1rem;
    }
    
    .submit-btn {
        max-width: 100%;
    }
}

/* Accessibility Focus Styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--yellow);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .login-note,
    .back-link {
        display: none;
    }
    
    body {
        background: none;
        color: #000;
    }
    
    .membership-form {
        box-shadow: none;
        padding: 0;
    }
}