/* ========================================
   Song Ranking 500 - Summer Radio Style
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

#sr500-form-container {
    max-width: 650px;
    margin: 30px auto;
    padding: 30px 35px 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15), 0 1px 8px rgba(0,0,0,0.06);
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    border-top: 8px solid #f39200;
    position: relative;
}

.sr500-logo {
    text-align: center;
    margin-bottom: 5px;
	display: none !important;
	
}
.sr500-logo img {
    max-height: 80px;
    width: auto;
    display: inline-block;
}

#sr500-form-container h2 {
    font-family: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
    font-size: 2.6rem;
    font-weight: 400;
    text-align: center;
    letter-spacing: 2px;
    color: #1a3e60;
    margin: 10px 0 8px;
    text-shadow: 3px 3px 0 rgba(243, 146, 0, 0.3);
    word-break: break-word;
}
#sr500-form-container p {
    text-align: center;
    color: #555;
    font-size: 1.05rem;
    margin-top: -5px;
    margin-bottom: 25px;
    border-bottom: 2px dashed #f39200;
    padding-bottom: 12px;
}

.sr500-field {
    margin-bottom: 18px;
}
.sr500-field label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a3e60;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}
.sr500-field input[type="text"],
.sr500-field input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e7ef;
    border-radius: 12px;
    font-size: 1rem;
    background: #f8fafc;
    transition: all 0.25s ease;
    box-sizing: border-box;
    color: #1a3e60;
}
.sr500-field input[type="text"]:focus,
.sr500-field input[type="tel"]:focus {
    border-color: #f39200;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(243, 146, 0, 0.15);
}
.sr500-field input.error {
    border-color: #dc3232;
    background: #fff5f5;
}
.sr500-field input.error:focus {
    box-shadow: 0 0 0 4px rgba(220, 50, 50, 0.15);
}

.sr500-error-msg {
    color: #dc3232;
    font-size: 0.85rem;
    font-weight: 500;
    display: block;
    margin-top: 4px;
    min-height: 20px;
    padding-left: 4px;
}

.sr500-song-entry {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.sr500-song-entry input {
    flex: 1;
    min-width: 120px;
    padding: 10px 12px;
    border: 2px solid #e0e7ef;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #f8fafc;
    transition: all 0.25s ease;
    box-sizing: border-box;
}
.sr500-song-entry input:focus {
    border-color: #f39200;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(243, 146, 0, 0.12);
}
.sr500-song-entry input.error {
    border-color: #dc3232;
    background: #fff5f5;
}
.sr500-song-entry .sr500-remove-song {
    background: #dc3232;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    height: 42px;
}
.sr500-song-entry .sr500-remove-song:hover:not(:disabled) {
    background: #b71c1c;
}
.sr500-song-entry .sr500-remove-song:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#sr500-add-song {
    background: #1a3e60;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 4px;
}
#sr500-add-song:hover {
    background: #0f2c44;
    transform: scale(1.02);
}
#sr500-add-song:active {
    transform: scale(0.97);
}

#sr500-submit {
    background: linear-gradient(145deg, #f39200, #e07c00);
    color: white;
    border: none;
    padding: 14px 34px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    margin-top: 12px;
    box-shadow: 0 6px 0 #b36200;
    text-transform: uppercase;
}
#sr500-submit:disabled {
    background: #ccc;
    box-shadow: 0 4px 0 #999;
    cursor: not-allowed;
    transform: translateY(2px);
}
#sr500-submit:hover:not(:disabled) {
    background: linear-gradient(145deg, #ff9f1a, #e07c00);
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #b36200;
}
#sr500-submit:active:not(:disabled) {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #b36200;
}

#sr500-message {
    margin: 18px 0 8px;
    padding: 14px 18px;
    border-radius: 30px;
    font-weight: 600;
    display: none;
    text-align: center;
}
.sr500-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block !important;
}
.sr500-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablets y pantallas medianas */
@media (max-width: 768px) {
    #sr500-form-container {
        padding: 25px 20px 30px;
        margin: 20px 15px;
    }
    #sr500-form-container h2 {
        font-size: 2.2rem;
    }
    #sr500-form-container p {
        font-size: 0.95rem;
    }
    .sr500-song-entry {
        gap: 8px;
    }
    .sr500-song-entry input {
        min-width: 100px;
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

/* Móviles */
@media (max-width: 600px) {
    #sr500-form-container {
        padding: 18px 15px 25px;
        margin: 10px 8px;
        border-radius: 16px;
        border-top-width: 6px;
    }
    #sr500-form-container h2 {
        font-size: 1.8rem;
        letter-spacing: 1px;
        text-shadow: 2px 2px 0 rgba(243, 146, 0, 0.25);
    }
    #sr500-form-container p {
        font-size: 0.9rem;
        margin-bottom: 18px;
        padding-bottom: 10px;
    }
    .sr500-field label {
        font-size: 0.9rem;
    }
    .sr500-field input[type="text"],
    .sr500-field input[type="tel"] {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    .sr500-song-entry {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        background: #f8fafc;
        padding: 12px 10px;
        border-radius: 12px;
        border: 1px solid #eef2f6;
        margin-bottom: 12px;
    }
    .sr500-song-entry input {
        min-width: unset;
        width: 100%;
        padding: 10px 12px;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    .sr500-song-entry .sr500-remove-song {
        width: 100%;
        height: 40px;
        text-align: center;
        border-radius: 30px;
        margin-top: 2px;
        font-size: 0.9rem;
    }
    #sr500-add-song {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 1rem;
        border-radius: 30px;
        margin-top: 6px;
    }
    #sr500-submit {
        padding: 14px 20px;
        font-size: 1.1rem;
        margin-top: 10px;
        border-radius: 40px;
    }
    #sr500-message {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    .sr500-logo img {
        max-height: 60px;
    }
}

