/* Application Form Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    z-index: 1001;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #000;
}

#modalTitle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 0;
    padding: 25px 30px;
    border-radius: 12px 12px 0 0;
    font-size: 1.5em;
    font-weight: 600;
}

#applicationForm {
    padding: 30px;
}

/* Form Styles */
fieldset {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
}

legend {
    font-weight: 600;
    color: #333;
    padding: 0 10px;
    font-size: 1.1em;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Raleway', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input[required],
.form-group select[required],
.form-group textarea[required] {
    border-left: 4px solid #f56565;
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-left-color: #48bb78;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85em;
}

.char-count {
    text-align: right;
    font-weight: 500;
}

/* Radio buttons */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-group input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

.radio-group label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Checkboxes */
.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
}

.form-group label[for="consentForMonitoring"] {
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

/* File upload */
.form-group input[type="file"] {
    padding: 8px;
    border: 2px dashed #ddd;
    background-color: white;
}

.form-group input[type="file"]:hover {
    border-color: #667eea;
}

/* Form buttons */
.form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 200px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

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

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Awards grid update */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.awards-grid .row {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.awards-grid .row:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Modern Share functionality styles */
.actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding: 0 20px 20px;
}

.actions button {
    flex: 1;
    min-height: 44px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.actions button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.actions button:hover::before {
    left: 100%;
}

.actions button.visible,
.actions button:not(.share-btn) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.actions button.visible:hover,
.actions button:not(.share-btn):hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.share-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%) !important;
    color: white !important;
    box-shadow: 0 4px 20px rgba(238, 90, 36, 0.3) !important;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 30px rgba(238, 90, 36, 0.4) !important;
}

.share-btn i,
.actions button i {
    font-size: 16px;
    opacity: 0.9;
}

/* Share Modal Specific Styles */
.share-modal {
    max-width: 700px;
    padding: 30px;
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px 0;
}

.share-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.share-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-section h3 i {
    color: #667eea;
    font-size: 1.2em;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.share-btn-action {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.share-btn-action i {
    font-size: 16px;
}

.share-btn-action.email {
    background: #dc3545;
    color: white;
}

.share-btn-action.email:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.share-btn-action.copy-email {
    background: #6c757d;
    color: white;
}

.share-btn-action.copy-email:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.share-btn-action.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn-action.twitter:hover {
    background: #0d8bd9;
    transform: translateY(-2px);
}

.share-btn-action.facebook {
    background: #4267b2;
    color: white;
}

.share-btn-action.facebook:hover {
    background: #365899;
    transform: translateY(-2px);
}

.share-btn-action.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn-action.linkedin:hover {
    background: #006396;
    transform: translateY(-2px);
}

.share-btn-action.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn-action.whatsapp:hover {
    background: #1ebe57;
    transform: translateY(-2px);
}

.share-btn-action.tiktok {
    background: #000000;
    color: white;
}

.share-btn-action.tiktok:hover {
    background: #333333;
    transform: translateY(-2px);
}

.share-btn-action.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.share-btn-action.instagram:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.share-btn-action.copy-link {
    background: #667eea;
    color: white;
}

.share-btn-action.copy-link:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.link-section {
    display: flex;
    gap: 10px;
    align-items: center;
}

.link-section input {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.link-section input:focus {
    outline: none;
    border-color: #667eea;
}

/* Screenshot Preview Styles */
.screenshot-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 15px;
    color: white;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.screenshot-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    pointer-events: none;
}

.preview-content {
    position: relative;
    z-index: 2;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.preview-logo {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #667eea;
    font-size: 18px;
}

.preview-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.preview-description {
    font-size: 16px;
    line-height: 1.4;
    margin: 10px 0 15px;
    opacity: 0.95;
}

.preview-cta {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.preview-url {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 12px;
    opacity: 0.8;
    font-family: monospace;
}

/* Highlight animation for shared awards */
@keyframes highlight {
    0%, 100% { transform: scale(1); box-shadow: none; }
    50% { transform: scale(1.02); box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3); }
}

/* Awards grid updates */
.awards-grid .row {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Responsive design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 95vh;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        max-width: none;
    }
    
    #modalTitle {
        padding: 20px;
        font-size: 1.3em;
    }
    
    #applicationForm {
        padding: 20px;
    }
    
    .awards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .actions {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .share-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .link-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .share-section {
        padding: 15px;
    }
}
