/*
Plugin CSS for Skyroom Mobile Plugin
Styles for the frontend shortcode form, including OTP verification.
Designed with modern, accessible, and responsive styling.
*/

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: normal;
	src: url('../font/eot/iranyekanwebregularfanum.eot');
	src: url('../fonts/eot/iranyekanwebregularfanum.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
		 url('../font/woff/iranyekanwebregularfanum.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		 url('../font/ttf/iranyekanwebregularfanum.ttf') format('truetype');
}

.skyroom-mobile-form {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    direction: rtl;
    text-align: right;
    font-family: Aria !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: #fff;
}

.skyroom-mobile-form .form-group, .skyroom-mobile-form .otp-group {
    margin-bottom: 20px;
}

.skyroom-mobile-form .form-group label, .skyroom-mobile-form .otp-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #333;
}

.skyroom-mobile-form .form-group input, .skyroom-mobile-form .otp-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: iranyekan !important;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.skyroom-mobile-form .form-group input:focus, .skyroom-mobile-form .otp-group input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
    outline: none;
}

.skyroom-mobile-form #request-otp, .skyroom-mobile-form #resend_otp {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.skyroom-mobile-form #request-otp:hover, .skyroom-mobile-form #verify_otp:hover, .skyroom-mobile-form #resend_otp:not(:disabled):hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.skyroom-mobile-form #request-otp:active, .skyroom-mobile-form #verify_otp:active, .skyroom-mobile-form #resend_otp:not(:disabled):active {
    background-color: #004085;
    transform: translateY(0);
    box-shadow: none;
}

.skyroom-mobile-form #resend_otp:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.skyroom-mobile-form .resend-otp {
    margin-top: 15px;
    text-align: center;
}

.skyroom-mobile-form .resend-otp p {
    margin-bottom: 10px;
    color: #555;
    font-size: 14px;
}

.skyroom-mobile-form .resend-otp p span#otp_timer {
    font-weight: bold;
    color: #007bff;
}

span#otp_timer {
    font-family: 'iranyekan' !important;
}

.skyroom-mobile-form .loading {
    color: #007bff;
    margin-top: 15px;
    text-align: center;
    font-family: inherit;
    font-size: 15px;
}

.skyroom-mobile-form .result {
    padding: 15px;
    border-radius: 6px;
    font-family: inherit;
    color: #28a745;
}

.skyroom-mobile-form .result p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.skyroom-mobile-form .result p a {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.skyroom-mobile-form .result p a:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.skyroom-mobile-form .result p a:active {
    background-color: #004085;
    transform: translateY(0);
    box-shadow: none;
}

.skyroom-mobile-form .result .copy-link-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.skyroom-mobile-form .result .copy-link-container input {
    flex-grow: 1;
    background-color: #f5f5f5;
    border: 1px dashed #ccc;
    cursor: text;
    font-size: 14px;
    padding: 10px;
    border-radius: 6px;
    box-sizing: border-box;
    min-width: 150px;
}

.skyroom-mobile-form .result .copy-link-container button {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.skyroom-mobile-form .result .copy-link-container button:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.skyroom-mobile-form .error {
    margin-top: 15px;
    padding: 15px;
    background-color: #ffebee;
    border-radius: 6px;
    font-family: inherit;
    color: #dc3545;
    border: 1px solid #f5c6cb;
}

@media (max-width: 600px) {
    .skyroom-mobile-form {
        margin: 15px auto;
        padding: 15px;
    }
    .skyroom-mobile-form #request-otp, .skyroom-mobile-form #verify_otp, .skyroom-mobile-form #resend_otp {
        padding: 10px 20px;
        font-size: 15px;
    }
    .skyroom-mobile-form .result .copy-link-container {
        flex-direction: column;
        gap: 10px;
    }
    .skyroom-mobile-form .result .copy-link-container input,
    .skyroom-mobile-form .result .copy-link-container button {
        width: 100%;
    }
}
.skyroom-mobile-form #verify_otp {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    margin-top: 10px; /* Added 10px top margin */
}
.resend-otp p {
    margin: 0 5px;
    display: inline-block;
}
