/* Brochure Download System Styles */

#brochure-download-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.brochure-form-wrapper {
    background: #f5f7fa;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.form-description {
    font-size: 15px;
    color: #666;
    margin: 0 0 40px 0;
    line-height: 1.6;
}

.brochure-step {
    display: none;
}

.brochure-step.active {
    display: block;
    animation: fadeIn 0.4s ease-in;
}

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

/* Form Rows and Groups */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group.half {
    flex: 1;
}

.form-group.full {
    flex: 1 1 100%;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.required {
    color: #e74c3c;
}

/* Input Styles */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Buttons */
.brochure-submit-btn,
.brochure-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.brochure-submit-btn {
    background: #1a1a1a;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.brochure-submit-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

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

.brochure-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.brochure-submit-btn svg {
    width: 20px;
    height: 20px;
}

.brochure-back-btn {
    background: #fff;
    color: #333;
    border: 2px solid #ddd;
}

.brochure-back-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.button-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Brochures Grid */
.brochures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.brochure-item {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.brochure-item:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.brochure-item.selected {
    border-color: #3498db;
    background: #e3f2fd;
}

.brochure-item input[type="checkbox"] {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.brochure-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    color: #3498db;
}

.brochure-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* OTP Input */
.otp-wrapper {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.otp-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.otp-icon svg {
    color: #3498db;
}

.otp-input-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 30px 0;
}

.otp-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.otp-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.resend-otp {
    margin-top: 20px;
    color: #666;
}

.link-btn {
    background: none;
    border: none;
    color: #3498db;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.link-btn:hover {
    color: #2980b9;
}

/* Success Screen */
.success-wrapper {
    text-align: center;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    padding: 20px;
    background: #d4edda;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    color: #28a745;
}

.download-list {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: left;
}

.download-list h3 {
    font-size: 18px;
    margin: 0 0 15px 0;
    color: #333;
}

.download-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-list li:last-child {
    border-bottom: none;
}

.download-list li::before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    font-size: 18px;
}

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

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message.info {
    display: block;
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

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

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .brochure-form-wrapper {
        padding: 30px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-group.half {
        width: 100%;
    }
    
    .brochures-grid {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column-reverse;
        width: 100%;
    }
    
    .button-group button {
        width: 100%;
        justify-content: center;
    }
    
    .otp-input-container {
        gap: 8px;
    }
    
    .otp-input {
        width: 45px;
        height: 55px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .form-title {
        font-size: 24px;
    }
    
    .brochure-submit-btn,
    .brochure-back-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
}
