/**
 * Digiturn - Secure File Downloader - Frontend Styles
 */

/* Container */
.sfd-download-container {
    max-width: 600px;
    margin: 60px auto;
    padding: 0 20px;
}

.sfd-download-form {
    background: #fff;
    border: 3px solid #ab6e2e;
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 4px 6px rgba(171, 110, 46, 0.15), 0 10px 20px rgba(171, 110, 46, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.sfd-download-form:hover {
    transform: translateY(-2px);
    border-color: #c98a4f;
    box-shadow: 0 6px 12px rgba(171, 110, 46, 0.2), 0 12px 28px rgba(201, 138, 79, 0.15);
}

/* Typography */
.sfd-form-title {
    font-size: 20px;
    line-height: 24px;
    font-weight: 500;
    color: #0f332b;
    margin: 0 0 24px 0;
    text-align: center;
}

.sfd-form-description {
    font-size: 18px;
    font-weight: 400;
    line-height: 32px;
    letter-spacing: 0;
    margin: 0 0 32px 0;
    color: #0f332b;
    text-align: center;
}

/* Form Elements */
.sfd-form {
    margin: 0;
}

.sfd-form-group {
    margin-bottom: 24px;
}

.sfd-label {
    display: block;
    text-transform: uppercase;
    font-size: .875em;
    font-family: "DIN Next LT Pro", sans-serif;
    color: #0F332B;
    font-weight: 500;
    margin-bottom: 10px;
}

.sfd-label .required {
    color: #d63638;
}

.sfd-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.5;
    color: #1a1a1a;
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid #ab6e2e;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.sfd-input:focus {
    outline: none;
}

.sfd-input::placeholder {
    color: #666;
}

/* Button */
.sfd-button {
    width: 100%;
    transition: all 0.2s ease;
    display: inline-flex;
    font-family: "DIN Next LT Pro", sans-serif;
    font-size: 14px;
    font-weight: 500;
    border-radius: 50px;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: .03em;
    height: 48px;
    padding: 2px 22px 0;
    position: relative;
    z-index: 2;
    border: 2px solid #ab6e2e;
    color: #0f332b;
    background: transparent;
    cursor: pointer;
}

.sfd-button:hover {
    background: #ab6e2e;
    color: #fff;
}

.sfd-button:active {
    transform: scale3d(0.95, 0.95, 1);
}

.sfd-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.sfd-button-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Spinner */
.sfd-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sfd-spin 0.6s linear infinite;
}

@keyframes sfd-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Messages */
.sfd-form-message {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
    animation: sfd-slide-in 0.3s ease;
}

@keyframes sfd-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sfd-form-message.sfd-success {
    background-color: #f2f7ed;
    color: #3d6b3d;
    border-left: 4px solid #6da66d;
}

.sfd-form-message.sfd-error {
    background-color: #fce4e4;
    color: #d63638;
    border-left: 4px solid #d63638;
}

.sfd-form-message.sfd-info {
    background-color: #fef6ec;
    color: #8b6332;
    border-left: 4px solid #ab6e2e;
}

/* Info Section */
.sfd-form-info {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #ab6e2e;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sfd-icon {
    width: 20px;
    height: 20px;
    color: #8b6332;
    flex-shrink: 0;
    margin-top: 2px;
}

.sfd-form-info p {
    margin: 0;
    font-size: 13px;
    color: #0f332b;
    line-height: 1.5;
}

/* Page Wrapper */
.sfd-page-wrapper {
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 40px 0;
    background: linear-gradient(180deg, #ffffff 12%, #e3ecf2 100%);
}

.sfd-main-content {
    width: 100%;
}

.sfd-hero-section {
    padding: 40px 0;
}

.sfd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sfd-page-content {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.sfd-page-content h1,
.sfd-page-content h2 {
    margin-bottom: 16px;
}

.sfd-page-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
}

/* Responsive */
@media screen and (min-width: 768px) {
    .sfd-form-title {
        font-size: 24px;
        line-height: 34px;
        margin-bottom: 18px;
    }
}

@media screen and (min-width: 1100px) {
    .sfd-form-title {
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {
    .sfd-download-form {
        padding: 32px 24px;
    }
    
    .sfd-form-description {
        font-size: 16px;
        line-height: 30px;
    }
    
    .sfd-input,
    .sfd-button {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .sfd-download-container {
        margin: 30px auto;
    }
    
    .sfd-download-form {
        padding: 24px 20px;
    }
    
    .sfd-button {
        height: 40px;
        font-size: 12px;
        padding: 0 20px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .sfd-download-form {
        background: #fff;
        border-color: #ab6e2e;
        box-shadow: 0 4px 6px #ab6e2e33, 0 10px 20px rgba(171, 110, 46, 0.15);
    }
    
    .sfd-form-title {
        color: #0f332b;
    }
    
    .sfd-input:focus {
        background-color: rgba(255, 255, 255, 0.12);
    }
    
    .sfd-input::placeholder {
        color: #999;
    }
    
    .sfd-form-info {
        border-top-color: #ab6e2e;
    }
    
    .sfd-icon,
    .sfd-form-info p {
        color: #b0b0b0;
    }
    
    .sfd-button {
        border-color: #ab6e2e;
        color: #0f332b;
    }
    
    .sfd-button:hover {
        background: #ab6e2e;
        color: #fff;
    }
}
