/* ============================================
   Bolt Kargo - Form Stilleri
   ============================================ */

/* Form Page Header */
.form-page-header {
    background: var(--secondary-color);
    color: #fff;
    padding: 130px 0 40px;
    text-align: center;
}

.form-page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 700;
}

.form-page-header p {
    font-size: 1.15rem;
    color: #bbb;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Form Section */
.form-section {
    padding: 60px 0 100px;
    background: var(--background-light);
}

/* Form Card */
.form-card {
    max-width: 780px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
}

.form-card-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.form-card-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--primary-color);
}

.form-card-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.form-card-header p {
    font-size: 0.95rem;
    color: #888;
}

/* Form Row - 2 kolonlu */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
    margin-bottom: 24px;
}

.form-group:not(.full-width):not(.form-row .form-group) {
    margin-bottom: 24px;
}

/* Label */
.form-group label {
    font-family: var(--font-primary);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--secondary-color);
    letter-spacing: 0.3px;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fafafa;
    border: 2px solid #eee;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.input-wrapper.focused {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 223, 9, 0.12);
}

.input-wrapper.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.input-wrapper.error .input-icon {
    color: #ef4444;
}

/* Input Icon */
.input-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: #aaa;
    transition: color 0.3s ease;
    flex-shrink: 0;
    pointer-events: none;
    z-index: 1;
}

.input-wrapper.focused .input-icon {
    color: var(--secondary-color);
}

/* Inputs */
.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 15px 18px 15px 48px;
    border: none;
    background: transparent;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--secondary-color);
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.input-wrapper select {
    cursor: pointer;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
    color: #bbb;
    font-weight: 300;
}

.input-wrapper select option[value=""][disabled] {
    color: #bbb;
}

/* Textarea */
.textarea-wrapper {
    align-items: flex-start;
}

.input-wrapper textarea {
    width: 100%;
    padding: 15px 18px;
    border: none;
    background: transparent;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--secondary-color);
    outline: none;
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Field Error */
.field-error {
    font-size: 0.82rem;
    color: #ef4444;
    min-height: 18px;
    font-weight: 500;
}

/* Submit Button */
.form-actions {
    margin-top: 36px;
    text-align: center;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 48px;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transform: skewX(-12deg);
    font-style: italic;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 260px;
    min-height: 56px;
}

.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-color);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.btn-submit:hover {
    transform: skewX(-12deg) translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.btn-submit:hover::before {
    transform: translateX(0);
}

.btn-submit:hover .btn-text {
    color: var(--secondary-color);
}

.btn-text,
.btn-loading {
    position: relative;
    z-index: 1;
}

.btn-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: inline-flex;
}

.btn-submit.loading {
    pointer-events: none;
    opacity: 0.85;
}

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

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

/* Message Overlay */
.message-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    padding: 20px;
}

.message-overlay.active {
    opacity: 1;
    visibility: visible;
}

.message-box {
    background: #fff;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    max-width: 420px;
    width: 100%;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.message-overlay.active .message-box {
    transform: scale(1) translateY(0);
}

.message-icon {
    margin-bottom: 20px;
}

.message-icon svg {
    width: 64px;
    height: 64px;
}

.message-box h3 {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.message-box p {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 28px;
}

.btn-message-close {
    display: inline-block;
    padding: 12px 40px;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transform: skewX(-12deg);
    font-style: italic;
    transition: all 0.3s ease;
}

.btn-message-close:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: skewX(-12deg) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.file-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 36px 24px;
    border: 2px dashed #ddd;
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(255, 223, 9, 0.04);
}

.file-upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(255, 223, 9, 0.08);
    transform: scale(1.01);
}

.file-upload-icon {
    width: 40px;
    height: 40px;
    color: #bbb;
    transition: color 0.3s ease;
}

.file-upload-area:hover .file-upload-icon {
    color: var(--secondary-color);
}

.file-upload-text {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: #888;
}

.file-upload-text strong {
    color: var(--secondary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.file-upload-hint {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    color: #aaa;
}

.file-selected {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 223, 9, 0.08);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
}

.file-upload-wrapper.has-file .file-upload-area {
    display: none;
}

.file-upload-wrapper.has-file .file-selected {
    display: flex;
}

.file-check-icon {
    width: 28px;
    height: 28px;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.file-name {
    font-family: var(--font-primary);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--secondary-color);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-remove {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 6px;
}

.file-remove svg {
    width: 16px;
    height: 16px;
    color: #666;
}

.file-remove:hover {
    background: #ef4444;
}

.file-remove:hover svg {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .form-page-header {
        padding: 100px 0 30px;
    }

    .form-page-header h1 {
        font-size: 2rem;
    }

    .form-page-header p {
        font-size: 1rem;
    }

    .form-section {
        padding: 30px 0 60px;
    }

    .form-card {
        padding: 30px 20px;
        border-radius: 16px;
        margin: 0 -4px;
    }

    .form-card-header {
        margin-bottom: 28px;
        padding-bottom: 20px;
    }

    .form-card-header h2 {
        font-size: 1.3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 20px;
    }

    .btn-submit {
        width: 100%;
        padding: 16px 30px;
        font-size: 0.92rem;
    }

    .message-box {
        padding: 40px 24px;
    }

    .message-icon svg {
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 24px 16px;
    }

    .input-wrapper input,
    .input-wrapper select {
        padding: 13px 14px 13px 44px;
        font-size: 0.9rem;
    }

    .input-wrapper textarea {
        padding: 13px 14px;
        font-size: 0.9rem;
    }

    .input-icon {
        left: 14px;
        width: 18px;
        height: 18px;
    }
}
