/* Modal Overlay */
.sra-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.sra-modal-overlay.sra-modal-open {
    display: flex;
}

/* Modal Container */
.sra-modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: sraModalSlideIn 0.3s ease;
}

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

/* Modal Header */
.sra-modal-header {
    background: linear-gradient(135deg, #1a5f7a 0%, #2e8b57 100%);
    color: #fff;
    padding: 24px 24px 20px;
    position: relative;
    text-align: center;
}

.sra-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.sra-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.sra-modal-close:hover {
    opacity: 1;
}

/* Modal Body */
.sra-modal-body {
    padding: 28px 24px;
}

/* Form Styles */
.sra-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sra-modal-row {
    display: flex;
    gap: 12px;
}

.sra-modal-field {
    flex: 1;
}

.sra-modal-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.sra-modal-field input[type="text"],
.sra-modal-field input[type="email"],
.sra-modal-field input[type="tel"],
.sra-modal-field input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.sra-modal-field input:focus {
    outline: none;
    border-color: #1a5f7a;
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

/* Checkbox */
.sra-modal-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.sra-modal-checkbox input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #1a5f7a;
}

.sra-modal-checkbox a {
    color: #1a5f7a;
    text-decoration: none;
}

.sra-modal-checkbox a:hover {
    text-decoration: underline;
}

/* Submit Button */
.sra-modal-submit {
    background: linear-gradient(135deg, #1a5f7a 0%, #2e8b57 100%);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

.sra-modal-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 95, 122, 0.3);
}

.sra-modal-submit:active {
    transform: translateY(0);
}

.sra-modal-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Modal Footer */
.sra-modal-footer {
    text-align: center;
    padding: 16px 24px 24px;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #eee;
    margin-top: 8px;
}

.sra-modal-footer a {
    color: #1a5f7a;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.sra-modal-footer a:hover {
    text-decoration: underline;
}

/* Message */
.sra-modal-message {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    text-align: center;
}

.sra-modal-message.sra-modal-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sra-modal-message.sra-modal-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Remember Me */
.sra-modal-remember {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.sra-modal-remember label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    cursor: pointer;
}

/* Tab Links */
.sra-modal-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.sra-modal-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.sra-modal-tab:hover {
    color: #1a5f7a;
}

.sra-modal-tab.sra-modal-tab-active {
    color: #1a5f7a;
}

.sra-modal-tab.sra-modal-tab-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1a5f7a;
}

/* Form visibility */
.sra-modal-form-signup,
.sra-modal-form-signin {
    display: none;
}

.sra-modal-form-signup.sra-modal-form-active,
.sra-modal-form-signin.sra-modal-form-active {
    display: flex;
    flex-direction: column;
}

/* Disclaimer */
.sra-modal-disclaimer {
    font-size: 11px;
    color: #666;
    line-height: 1.5;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    text-align: center;
}

.sra-modal-disclaimer a {
    color: #1a5f7a;
    text-decoration: none;
}

.sra-modal-disclaimer a:hover {
    text-decoration: underline;
}
