/* ============================================
   Accounting Post Form Page Styles
   Color Theme: Matching website colors (#50bfda, #e21111)
   ============================================ */

/* Page Container */
.accounting-directory-page {
    position: relative;
    display: block;
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #f8fbfc 0%, #ffffff 100%);
    min-height: 100vh;
}

/* Page Header */
.accounting-directory-header {
    position: relative;
    display: block;
    margin-bottom: 40px;
    text-align: center;
}

.accounting-directory-title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    color: #212529;
    margin-bottom: 15px;
    font-family: "Mitr", sans-serif;
    position: relative;
}

.accounting-directory-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #50bfda 0%, #3da8c4 100%);
    border-radius: 2px;
}

.accounting-directory-subtitle {
    font-size: 16px;
    color: #6c757d;
    max-width: 600px;
    margin: 25px auto 0;
    font-family: "Mitr", sans-serif;
    line-height: 1.6;
}

/* Form Card */
.form-card {
    position: relative;
    max-width: 800px;
    margin: 0 auto 50px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.form-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #50bfda 0%, #3da8c4 100%);
    color: #ffffff;
}

.form-card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-card-icon i {
    font-size: 28px;
}

.form-card-header-text h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 5px;
    font-family: "Mitr", sans-serif;
}

.form-card-header-text p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    font-family: "Mitr", sans-serif;
}

/* Form Styles */
.directory-form {
    padding: 35px;
}

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

.form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #212529;
    margin-bottom: 12px;
    font-family: "Mitr", sans-serif;
}

.form-label i {
    color: #50bfda;
    font-size: 18px;
}

.required {
    color: #e21111;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    font-family: "Mitr", sans-serif;
    color: #212529;
    background: #ffffff;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #50bfda;
    box-shadow: 0 0 0 4px rgba(80, 191, 218, 0.1);
}

.form-input.error,
.form-textarea.error {
    border-color: #e21111;
    box-shadow: 0 0 0 4px rgba(226, 17, 17, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #adb5bd;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-hint {
    font-size: 13px;
    color: #6c757d;
    margin-top: 8px;
    font-family: "Mitr", sans-serif;
}

.form-error {
    font-size: 13px;
    color: #e21111;
    margin-top: 8px;
    font-family: "Mitr", sans-serif;
    display: none;
}

.form-error.show {
    display: block;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Checkbox Group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Mitr", sans-serif;
}

.checkbox-item:hover {
    border-color: #50bfda;
    background: #f0fafc;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #ced4da;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-custom {
    background: #50bfda;
    border-color: #50bfda;
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.checkbox-item input[type="checkbox"]:checked ~ .checkbox-label {
    color: #50bfda;
    font-weight: 500;
}

.checkbox-label {
    font-size: 14px;
    color: #495057;
    transition: all 0.3s ease;
}

.agreement-checkbox {
    background: transparent;
    border: none;
    padding: 0;
}

.agreement-checkbox:hover {
    background: transparent;
}

.agreement-checkbox .checkbox-label a {
    color: #50bfda;
    text-decoration: none;
}

.agreement-checkbox .checkbox-label a:hover {
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.btn-submit {
    flex: 1;
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
    background: linear-gradient(135deg, #50bfda 0%, #3da8c4 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 500;
    font-family: "Mitr", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(80, 191, 218, 0.35);
}

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

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

.btn-view-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
    background: #ffffff;
    color: #50bfda;
    border: 2px solid #50bfda;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    font-family: "Mitr", sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-list:hover {
    background: #50bfda;
    color: #ffffff;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.info-card {
    text-align: center;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(80, 191, 218, 0.1) 0%, rgba(61, 168, 196, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.info-card-icon i {
    font-size: 24px;
    color: #50bfda;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 8px;
    font-family: "Mitr", sans-serif;
}

.info-card p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    font-family: "Mitr", sans-serif;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .accounting-directory-title {
        font-size: 28px;
    }
    
    .form-card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .checkbox-group {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .info-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 767px) {
    .accounting-directory-page {
        padding: 40px 0 60px;
    }
    
    .accounting-directory-title {
        font-size: 24px;
    }
    
    .form-card {
        margin: 0 15px 40px;
    }
    
    .form-card-header {
        padding: 25px 20px;
    }
    
    .form-card-icon {
        width: 50px;
        height: 50px;
    }
    
    .form-card-icon i {
        font-size: 22px;
    }
    
    .form-card-header-text h2 {
        font-size: 18px;
    }
    
    .directory-form {
        padding: 25px 20px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-submit,
    .btn-view-list {
        width: 100%;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
        margin: 0 15px;
    }
}

@media (max-width: 480px) {
    .form-label {
        font-size: 14px;
    }
    
    .form-input,
    .form-textarea {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .checkbox-item {
        padding: 10px 12px;
    }
    
    .checkbox-label {
        font-size: 13px;
    }
    
    .btn-submit {
        font-size: 16px;
        padding: 14px 25px;
    }
}
