/* Modern Form Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #f0f4f8;
    color: #2d3748;
    line-height: 1.5;
    padding: 15px;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.form-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
}

/* Form Sections */
.form-section {
    margin-bottom: 24px;
    padding: 0;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #eaeff5;
    padding-bottom: 24px;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Form Layout Sections */
/* ===================== */

/* Compact Section */
.compact-section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Two Column Layout */
.two-column-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Form Section */
.form-section {
    margin-bottom: 20px;
}

.two-column-section .form-section {
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Form Footer */
.form-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 13px;
        overflow-x: hidden;
    }
    
    .form-container {
        padding: 15px 10px;
        margin: 0;
        width: 100%;
        border-radius: 0;
    }
    
    .form-header h1 {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .form-header p {
        font-size: 13px;
    }
    
    .two-column-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 5px;
    }
    
    .two-column-section .form-section {
        margin: 0;
        padding: 12px 10px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .checkbox-group, .radio-group {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 0 5px;
        box-sizing: border-box;
    }
    
    .checkbox-item, .radio-label {
        width: 100%;
        margin: 0;
        display: flex;
        align-items: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 5px 0;
    }
    
    .checkbox-item input[type="checkbox"], 
    .radio-label input[type="radio"] {
        margin-right: 8px;
        flex-shrink: 0;
    }
    
    .checkbox-item span,
    .radio-label .radio-text {
        white-space: normal;
        word-break: break-word;
        flex: 1;
        min-width: 0;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-col {
        width: 100%;
        padding: 0;
    }
    
    .phone-group {
        display: flex;
        gap: 5px;
        align-items: center;
        width: 100%;
    }
    
    .phone-group input {
        flex: 1;
        min-width: 0;
        max-width: 100%;
    }
    
    .checkbox-group, .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .terms-content {
        max-height: 200px;
        padding: 10px;
        font-size: 12px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .form-footer {
        padding: 15px 0;
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
}

.compact-section h2 {
    font-size: 16px;
    color: #1f2937;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.compact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.compact-form-group {
    margin-bottom: 0;
}

.compact-form-group label {
    display: block;
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 4px;
}

.compact-form-group input[type="text"],
.compact-form-group input[type="email"],
.compact-form-group input[type="tel"],
.compact-form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.compact-form-group input:focus,
.compact-form-group select:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.phone-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.phone-group input {
    width: 100%;
    max-width: 80px;
    min-width: 50px;
    text-align: center;
}

.phone-group span {
    color: #6b7280;
    margin: 0 2px;
}

.email-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.email-group input[type="text"] {
    flex: 1;
    min-width: 0;
}

.email-group select {
    flex: 1;
    min-width: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .compact-grid {
        grid-template-columns: 1fr;
    }
    
    .compact-section {
        padding: 15px;
    }
}

/* Header */
.form-header {
    text-align: left;
    padding: 0 12px 24px;
    border-bottom: 1px solid #eaeff5;
}

.form-header h1 {
    color: #1a365d;
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.form-header p {
    color: #4a5568;
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

/* Permission Settings */
.permission-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.permission-form-col {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    position: relative;
}

.permission-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.permission-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
    text-align: center;
}

.permission-option input[type="radio"]:checked + .permission-box {
    border-color: #1a73e8;
    background-color: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.permission-option:hover .permission-box {
    border-color: #9bbff5;
}

.permission-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e8f0fe;
    border-radius: 50%;
    margin-bottom: 12px;
    color: #1a73e8;
}

.permission-option input[type="radio"]:checked + .permission-box .permission-icon {
    background-color: #d2e3fc;
}

.permission-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.permission-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 5px;
}

.permission-text span {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.4;
}

/* Terms and Conditions */
.terms-container {
    margin: 20px 0;
}

.terms-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.terms-box h3 {
    background: #f7fafc;
    color: #2d3748;
    padding: 12px 15px;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}

.terms-content {
    height: 120px;
    overflow-y: auto;
    padding: 15px;
    background-color: #fff;
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-line;
    color: #4a5568;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Scrollbar styling for terms content */
.terms-content::-webkit-scrollbar {
    width: 8px;
}

.terms-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.terms-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.terms-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.terms-agree {
    padding: 12px 15px;
    background-color: #f7fafc;
    border-top: 1px solid #e2e8f0;
}

.terms-agree .checkbox-item {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #2d3748;
}

/* Error state for form fields */
.error {
    border-color: #e53e3e !important;
    background-color: #fff5f5 !important;
    box-shadow: 0 0 0 1px #e53e3e;
}

.error-message {
    color: #e53e3e;
    font-size: 12px;
    margin-top: 4px;
    display: none;
    font-weight: 500;
}

.input-group.error .error-message {
    display: block;
}

/* Focus state for better accessibility */
input:focus, select:focus, textarea:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 1px #3182ce;
    outline: none;
}

.terms-content p {
    margin-bottom: 10px;
}

.terms-content p:last-child {
    margin-bottom: 0;
}

.terms-agree {
    padding: 12px 15px;
    background: #fff;
}

.form-notice {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #4a5568;
}

.form-notice p {
    margin: 5px 0;
} 

.form-notice p:first-child {
    margin-top: 0;
}

.form-notice p:last-child {
    margin-bottom: 0;
}

/* Form Elements */
.form-body {
    padding: 12px;
}

@media (max-width: 480px) {
    .form-body {
        padding: 8px;
    }
    .form-section {
        padding: 8px;
    }
}

.form-group {
    margin-bottom: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0px 24px;
    margin: 0;
    padding: 0 12px;
}

.form-col {
    position: relative;
    margin-bottom: 10px;
}

.form-col:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 15px;
    letter-spacing: -0.3px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 9px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.2s ease;
    background-color: #f8fafc;
    color: #1a202c;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="password"]:hover,
select:hover,
textarea:hover {
    border-color: #a0aec0;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
    background-color: #fff;
}

.phone-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.phone-group span {
    color: #666;
    white-space: nowrap;
    font-size: 12px;
}

/* Form Labels */
.form-col label {
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
    color: #2d3748;
    font-size: 16px;
    letter-spacing: -0.3px;
}

/* Required Field Indicator */
.required:after {
    content: '*';
    color: #e53e3e;
    margin-left: 4px;
    font-weight: bold;
    position: relative;
    top: -1px;
    font-size: 14px;
}

/* Compact form group specific styles */
.compact-form-group label.required:after,
.form-col label.required:after {
    top: 0;
}

/* Radio Button Styles */
.radio-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin: 0;
    padding: 10px 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #4b5563;
    padding: 6px 12px;
    background: #f8fafc;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    margin: 0 5px 0 0;
    white-space: nowrap;
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin: 0;
    padding: 10px 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    
}

.checkbox-item {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #4b5563;
    padding: 6px 12px;
    background: #f8fafc;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    margin: 0 5px 0 0;
    white-space: nowrap;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

/* Buttons */
button[type="submit"],
.btn {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.2px;
    text-decoration: none;
    line-height: 1.5;
    min-width: 180px;
    margin: 10px 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

button[type="submit"]:hover,
button[type="submit"]:focus,
.btn:hover,
.btn:focus {
    background: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.25);
    outline: none;
}

button[type="submit"]:active,
.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button[type="submit"].btn-block,
.btn-block {
    display: block;
    width: 100%;
    padding: 14px;
    max-width: 400px;
    margin: 20px auto;
}

/* Form Footer */
/* Modern Footer */
.modern-footer {
    background-color: #f8f9fa;
    padding: 15px 0 15px;
    font-family: 'Pretendard', sans-serif;
    color: #333;
    border-top: 1px solid #e9ecef;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px 20px;
    align-items: center;
}

.footer-col {
    padding: 0 15px;
    flex: 1;
    min-width: 200px;
    margin-bottom: 15px;
}

/* Contact Info */
.contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: #e9f0ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3a7bfd;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-title {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

/* Business Hours */
.business-hours .hours-item {
    padding-left: 15px;
    border-left: 1px solid #e9ecef;
}

.hours-title {
    display: block;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.hours-detail {
    display: flex;
    flex-direction: column;
}

.hours-detail span {
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.5;
}

.hours-note {
    font-size: 12px;
    color: #868e96;
    margin-top: 2px;
}

/* Quick Links */
.quick-links {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.quick-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #004098;
    border: 1px solid #002a64;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s;
}

.quick-link:hover {
    background-color: #003175;
    border-color: #00265a;
    color: #fff;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #e9ecef;
}

.copyright {
    font-size: 12px;
    color: #868e96;
    margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .footer-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .quick-links {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .footer-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .business-hours .hours-item {
        border-left: none;
        padding-left: 0;
        margin-top: 15px;
    }
    
    .quick-links {
        margin-top: 15px;
    }
}

.application-footer .footer-bottom {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

/* Footer Styles */
.site-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 30px 0 15px;
    font-family: 'Pretendard', sans-serif;
    color: #333;
    font-size: 13px;
    line-height: 1.6;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

/* 왼쪽 컬럼 스타일 */
.footer-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer-logo .logo-img {
    height: 30px;
    width: auto;
}

.phone-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone-icon {
    width: 40px;
    height: 40px;
    background-color: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.phone-info {
    line-height: 1.4;
}

.company-name {
    font-weight: bold;
    font-size: 14px;
    margin: 0;
}

.phone-number {
    color: #e74c3c;
    font-weight: bold;
    font-size: 16px;
    margin: 5px 0 0 0;
}

/* 오른쪽 컬럼 스타일 */
.footer-right {
    text-align: right;
}

.inquiry-time p:first-child {
    font-weight: bold;
    margin-bottom: 5px;
}

.inquiry-time p {
    margin: 3px 0;
    color: #666;
}

.find-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
}

.find-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: background-color 0.3s;
}

.find-btn:hover {
    background-color: #e0e0e0;
}

/* 하단 스타일 */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    font-size: 11px;
    color: #888;
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links .link {
    color: #666;
    text-decoration: none;
    position: relative;
}

.footer-links .link:not(:last-child)::after {
    content: '|';
    margin-left: 15px;
    color: #ddd;
}

.footer-links .link:hover {
    color: #e74c3c;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 25px;
    }

    .footer-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .footer-right {
        text-align: left;
    }

    .find-buttons {
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.form-footer {
    background: #f8f9fa;
    padding: 15px 20px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    margin-top: 20px;
}

.form-notice {
    margin-bottom: 20px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

.form-notice p {
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 8px;
    }
    
    .form-section {
        padding: 0 0 24px 0;
    }
    
    .section-title {
        margin-left: 8px;
        font-size: 16px;
    }
    
    .form-header {
        padding: 0 8px 20px;
    }
    
    .form-header h1 {
        font-size: 22px;
    }
    
    .form-col {
        margin-bottom: 16px;
    }
    
    .form-col input[type="text"],
    .form-col input[type="email"],
    .form-col input[type="tel"],
    .form-col input[type="password"],
    .form-col select,
    .form-col textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Custom Select Styling */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    font-size: 12px;
    color: #666;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 40px;
}

/* Form Section Styling */
.form-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.form-section:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Section Titles */
.section-title {
    font-size: 17px;
    font-weight: 700;
    color: #2b6cb0;
    margin: 0 0 6px 12px;
    padding-bottom: 8px;
    position: relative;
    letter-spacing: -0.3px;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 24px;
    height: 3px;
    background: #4299e1;
    border-radius: 3px;
}

/* Helper Text */
.form-col .helper-text,
.compact-form-group .helper-text {
    font-size: 13px;
    color: #718096;
    margin: 1px 0 0 2px;
    display: block;
    line-height: 1.5;
    letter-spacing: -0.2px;
    font-weight: 400;
}

/* Required Field Indicator */
.required:after {
    content: ' *';
    color: #e53935;
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { 
        transform: rotate(360deg); 
    }
}

/* Success/Error Messages */
.message {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    cursor: help;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 1.4;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
