/* DropSpeed - Contact Page Styles */
/* PDF s.5 - İletişim sayfası özel stilleri */

/* Page Banner */
.page-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 8rem 0 4rem;
    position: relative;
    color: var(--bg-white);
    text-align: center;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-banner__content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.page-banner__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bg-white);
}

.page-banner__subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin: 0;
}

/* Contact Info */
.contact-info {
    padding: 1.5rem 1rem;
}

.contact-info__title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info__description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Contact Details */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.contact-detail:hover {
    background: rgba(0, 112, 185, 0.05);
    transform: translateY(-2px);
}

.contact-detail__icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail__icon svg {
    width: 24px;
    height: 24px;
}

.contact-detail__content {
    flex: 1;
}

.contact-detail__content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-detail__content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    display: block;
    margin-bottom: 0.25rem;
}

.contact-detail__content a:hover {
    text-decoration: underline;
}

.contact-detail__content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.contact-detail__content address {
    font-style: normal;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.contact-form__title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-form__description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Form Styles */
.form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.required {
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 0.4rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--bg-white);
    transition: all 0.2s ease;
    resize: vertical;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 112, 185, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

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

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    background-color: var(--bg-white);
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid var(--bg-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:focus + .checkmark {
    box-shadow: 0 0 0 3px rgba(0, 112, 185, 0.2);
}

.checkbox-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.checkbox-text a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Disabled Button Styles - Correct Selectors */
button[type="submit"].btn-primary:disabled,
button[type="submit"].btn-primary.disabled,
.btn-primary:disabled,
.btn-primary.disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
    pointer-events: none !important;
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
}

button[type="submit"].btn-primary:disabled:hover,
button[type="submit"].btn-primary.disabled:hover,
.btn-primary:disabled:hover,
.btn-primary.disabled:hover {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Field Error Messages */
.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Map Section */
.map-container {
    text-align: center;
}

.map-placeholder {
    background: var(--bg-white);
    border: 2px dashed var(--border-light);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    margin-top: 2rem;
    transition: all 0.2s ease;
}

.map-placeholder:hover {
    border-color: var(--primary-color);
    background: rgba(0, 112, 185, 0.02);
}

.map-placeholder__content {
    max-width: 400px;
    margin: 0 auto;
}

.map-placeholder__content svg {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.map-placeholder__content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.map-placeholder__content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Loading States */
.form-submit.loading {
    position: relative;
    color: transparent;
}

.form-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--bg-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 991px) {
    .page-banner {
        padding: 6rem 0 3rem;
    }
    
    .page-banner__title {
        font-size: 2.5rem;
    }
    
    .contact-info__title,
    .contact-form__title {
        font-size: 1.75rem;
    }
    
    .contact-form {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding: 4rem 0 2rem;
    }
    
    .page-banner__title {
        font-size: 2rem;
    }
    
    .page-banner__subtitle {
        font-size: 1.125rem;
    }
    
    .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .contact-info {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
        margin-top: 0;
    }
    
    .contact-info__title,
    .contact-form__title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    /* Tablet ve küçük ekranlar için contact-details düzenlemeleri */
    .contact-details {
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .contact-detail {
        padding: 1rem;
        background: var(--bg-white);
        border: 1px solid var(--border-light);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }
    
    .contact-detail:hover {
        background: var(--bg-white);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    .contact-detail__icon {
        width: 44px;
        height: 44px;
    }
    
    .contact-detail__icon svg {
        width: 22px;
        height: 22px;
    }
    
    .contact-detail__content h3 {
        font-size: 1rem;
    }
    
    .contact-detail__content a {
        font-size: 1rem;
    }
    
    .map-placeholder {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-banner {
        padding: 3rem 0 1.5rem;
    }
    
    .page-banner__title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .page-banner__subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .contact-info {
        padding: 0.5rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .contact-info__title,
    .contact-form__title {
        font-size: 1.25rem;
    }
    
    .contact-info__description,
    .contact-form__description {
        font-size: 0.9rem;
    }
    
    /* Mobil için contact-details düzenlemeleri */
    .contact-details {
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .contact-detail {
        padding: 1rem 0.75rem;
        flex-direction: row;
        text-align: left;
        gap: 0.75rem;
        background: var(--bg-white);
        border: 1px solid var(--border-light);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
    
    .contact-detail:hover {
        background: var(--bg-white);
        transform: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    .contact-detail__icon {
        width: 40px;
        height: 40px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .contact-detail__icon svg {
        width: 20px;
        height: 20px;
    }
    
    .contact-detail__content {
        flex: 1;
        min-width: 0;
    }
    
    .contact-detail__content h3 {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
        color: var(--text-dark);
    }
    
    .contact-detail__content a {
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--primary-color);
        text-decoration: none;
        display: block;
        margin-bottom: 0.125rem;
        word-break: break-all;
    }
    
    .contact-detail__content p {
        font-size: 0.8rem;
        color: var(--text-muted);
        margin: 0;
        line-height: 1.4;
    }
    
    .contact-detail__content address {
        font-size: 0.8rem;
        color: var(--text-muted);
        line-height: 1.4;
        font-style: normal;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-control {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
    
    .checkbox-text {
        font-size: 0.8rem;
    }
    
    .form-submit {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
    
    .map-placeholder {
        padding: 2rem 1rem;
    }
    
    .map-placeholder__content h3 {
        font-size: 1.25rem;
    }
    
    .map-placeholder__content p {
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .page-banner {
        background: none !important;
        color: var(--text-dark) !important;
        padding: 2rem 0 !important;
    }
    
    .page-banner::before {
        display: none !important;
    }
    
    .page-banner__title,
    .page-banner__subtitle {
        color: var(--text-dark) !important;
    }
    
    .contact-form,
    .map-placeholder {
        box-shadow: none !important;
        border: 1px solid var(--border-light) !important;
    }
    
    .form-submit,
    .map-placeholder {
        display: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .contact-form,
    .contact-detail {
        border: 2px solid var(--text-dark);
    }
    
    .form-control {
        border: 2px solid var(--text-dark);
    }
    
    .form-control:focus {
        border: 3px solid var(--primary-color);
    }
    
    .checkmark {
        border: 2px solid var(--text-dark);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .contact-detail,
    .form-control,
    .checkmark,
    .map-placeholder {
        transition: none;
    }
    
    .contact-detail:hover {
        transform: none;
    }
    
    .form-submit.loading::after {
        animation: none;
    }
}

/* Focus visible for better keyboard navigation */
.form-control:focus-visible,
.checkbox-label input[type="checkbox"]:focus-visible + .checkmark {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Map Section */
.map-container {
    text-align: center;
}

.map-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-top: 2rem;
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
}

.map-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    max-width: 300px;
    z-index: 10;
}

.map-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    display: inline-flex;
}

.map-info__icon {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.map-info__content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.map-info__content address {
    font-style: normal;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.map-info__content .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .map-overlay {
        position: static;
        margin-top: 1rem;
        max-width: none;
    }
    
    .map-wrapper iframe {
        height: 300px;
    }
}

/* Alert Messages */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    animation: slideInDown 0.3s ease-out;
}

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

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

.alert--warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert--info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Alert Icons */
.alert::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.alert--success::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23155724'%3e%3cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd'/%3e%3c/svg%3e");
}

.alert--error::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23721c24'%3e%3cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z' clip-rule='evenodd'/%3e%3c/svg%3e");
}

.alert--warning::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23856404'%3e%3cpath fill-rule='evenodd' d='M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z' clip-rule='evenodd'/%3e%3c/svg%3e");
}

.alert--info::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230c5460'%3e%3cpath fill-rule='evenodd' d='M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z' clip-rule='evenodd'/%3e%3c/svg%3e");
}

/* Alert Animation */
@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Field Error Styles */
.form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    background-color: #fff5f5;
}

.form-control.success {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
    background-color: #f8fff8;
}

.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.field-success {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    animation: fadeIn 0.2s ease-out;
}

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

/* Responsive Alert */
@media (max-width: 768px) {
    .alert {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .alert::before {
        width: 18px;
        height: 18px;
        margin-right: 0.5rem;
    }
}

/* Checkbox Error State */
.checkmark.error {
    border-color: #dc3545 !important;
    background-color: #fff5f5;
}

.checkmark.error::after {
    border-color: #dc3545;
}
